package com.example.leetcode.demo.leetcode;

public class reverseWords {
    public static void main(String[] args) {
        String  s="Let's take LeetCode contest";
        reverseWords(s);
        for(int k=0;k<s.length();k++){
            System.out.print(s.charAt(k));
        }
    }
    private static void reverseWords(String s){
        int left=0,right=s.length()-1;
        while (left<=right){
            char temp=s.charAt(left);
            
            left++;
            right--;
        }
    }
}
